﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 第六章
{
    public partial class _6__3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void BtnReg_Click(object sender, EventArgs e)
        {
            if (TXTName.Text == "" || TXTGrender.Text == "")
            {
                Response.Write("<script>alert('请完善注册信息');window.close();</script>");
                return;
            }
            HttpCookie cookie = new HttpCookie("Name");
            cookie.Value = TXTName.Text;
            Response.Cookies.Add(cookie);
            Response.Redirect("~/6.3_ResultForm.aspx");

        }
    }
}